<?php
include $_SERVER['DOCUMENT_ROOT'].'/lib/Epi/Epi.php';
//Epi::setPath('base', $_SERVER['DOCUMENT_ROOT'].'/lib/Epi');
//Epi::setSetting('exceptions', true);

Epi::init('route');

getRoute()->get('/', array('ctrl', 'def'));
getRoute()->get('/version', array('ctrl','ver'));
getRoute()->get('/user', array('ctrl','user'));
$tst=getRoute()->run();
echo $tst;

class ctrl{
  function def(){
	  return 'Welcome!';
	}
	function ver(){
	  return '0.1';
	}
	function user(){
	  return 'john';
	}
}
?>
